import axios from '@/common/http.js'

//根据学校id查询班级列表
export function getClasses(query) {
    return axios({
        header: {
          userType: 'spine'
        },
        url: '/hierarchy',
        method: 'get',
        params: query
    })
}

//查询班级下面的学生列表
export function getStudPage(query) {
    return axios({
        header: {
          userType: 'spine'
        },
        url: '/spinePage',
        method: 'get',
        params: query
    })
}

//根据学生ID查询学生信息
export function getStudInfo(query) {
    return axios({
        header: {
          userType: 'spine'
        },
        url: '/getStudents',
        method: 'get',
        params: query
    })
}

//提交筛查信息
export function addScreenData(data) {
    return axios({
        header: {
          userType: 'spine'
        },
        url: '/createSpine',
        method: 'post',
        data: data
    })
}